import { get } from '../get'
import { request } from '../request'

export const getBurstPressure = (pageNum, pageSize, searchModel) => {
  return get.get(`/burst_pressure/${pageNum}/${pageSize}`, {
    params: searchModel
  })
}

export const getDictChild = (parentName) => {
  return get.get('/burst_pressure/dict/child', {
    params: {
      name: parentName
    }
  })
}

export const deleteBurstPressure = (BurstPressureId) => {
  return request.delete(`/burst_pressure/${BurstPressureId}`)
}

export const updateBurstPressure = (BurstPressureId, updateBurstPressure) => {
  return request.put(`/burst_pressure/${BurstPressureId}`, updateBurstPressure)
}
